package com.example.braden.answergame.common;

import com.example.braden.answergame.BuildConfig;
import com.example.braden.answergame.base.BaseApplication;

import java.io.File;

/**
 * Created by braden on 2018/3/1.
 * 常量类
 */
public class Constant {


    private static String TEST_BASE_URL = " http://test.api.rtgame.bbobo.com:8000/";
    private static String BASE_URL = "http://api.rtgame.bbobo.com:8000/";


    public static String getBaseUrl() {
        if (BuildConfig.DEBUG) {
            return TEST_BASE_URL;
        } else {
        return BASE_URL;
        }
    }

    public static void setBaseUrl(String url) {
        BASE_URL = "http://" + url + "/";
    }

    public static final String NET_CACHE =
            BaseApplication.getAppCacheDir() + File.separator + "NetCache";


    //public static final String HOST = "https://free-api.heweather.com/v5/";
    // "d524edbc33fda1b2832128ef53f97586";
    public static String IDENTIFIER = "febb5ca130f42644452c999d61a5e541";
    public static final int APP_ID = 1400073444;// 1400061333;
    public static String USERSIGN =
            "eJxlkF1PgzAYhe-5FYTbGde3tGi9Yx9h6DRVF*O8IYWWUT*ggzJxxv-uZCaSeP0855zkfDqu63qr5f2pyLKqLW1iP4zy3AvXQ97JHzRGy0TYxK-lP6g6o2uViNyquoeYMozQUNFSlVbn*lfIVZrSTICPcoIDQgjFGWNMBiCoogQGyUa*JP16HwRy6D0jPmNDRW96eD1fT*Pb2aTkexnziBfjbLkAVE3nBV49NOPIsBtmgrB4XqflDHU0jIvwcjeJFuevKr5qObePNScjO3rPddc*7bd3FootFfEGVUTwwaTVb8eTgGIA5tMgGNCdqhtdlccvEFA4KOjnEOfL*QYez2NO";
    public static String ROOMID = "8f6162d7605cfa6d12586022e4c96b88";
//    public static String OPENID = "1871d2d652b88391dd30cd4577b70b1a";
        public static String OPENID = "d524edbc33fda1b2832128ef53f97586";
    //roomid:8f6162d7605cfa6d12586022e4c96b88
    public static final String APP_KEY = "1ada3068dacd6a322af1479052da32c2";
    public static final String APP_SECRET = "d6178ae6c46e4fb5e28e5c077c7ab9c4";
    public static String GAME_ID = "";
    public static final String YANSHI = "对方加时中...";
    public static final String CHOOSEPROP = "对方选择道具中...";
    public static final int FINISH_NORMAL = 0;//正常结束
    public static final int FINISH_ACTIVE = 1;//主动退出
    public static final int FINISH_EXCEPTION = 2;//异常（超时）结束
}
